<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl-NL" lang="nl-NL">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <meta name="Author" content="Hampei">
 <title>Editor</title>
 <meta Name="description" Content="description here">
 <meta Name="keywords" Content="keywords for search engines">

<script type="text/javascript" src="js/prototype.js" ></script>
<script type="text/javascript" src="js/AnnotationFileEditor.js" ></script>
<script type="text/javascript" src="js/Annotations.js" ></script>
<script type="text/javascript" src="js/PropertiesForm.js" ></script>
<script type="text/javascript" src="js/FileManager.js" ></script>

<script type="text/javascript">
//<![CDATA[
var annotationFileEditor;
function appletLoaded( applet ) {
	annotationFileEditor = new AnnotationFileEditor($('guiframe'), applet);

//	var test = Annotations;
//	alert((new test()).file());
 var test = new CElement();
 var test2 = new GroupElement();
 test.addPropertiesForm('test');
 // test2.addPropertiesForm('test2');
 // alert(Groupelement.listPropertiesForms()[0]);
 for (var property in GroupElement) {
 // alert(property);
 }

 //your_applet = applet;
 if ($('guiframe').contentDocument) {
   $('guiframe').contentDocument.write(applet.transformEBSchema('schemas/PurchaseOrder.xsd'));
 } else {
   document.frames['guiframe'].document.write(applet.transformEBSchema('schemas/PurchaseOrder.xsd'));
 }  
 //alert('applet loaded');
}



//]]>
</script>

<script language="javaScript">
//<![CDATA[

/* NOT ALLOWED IN IE ON RELATIVE LOCAL FILES
var xml;
new Ajax.Request('test.xml', {
  onSuccess: function(transport) {
    xml = transport.responseText;
  },
  onFailure: function() {
  	alert('error');
  },
 	onException: function(o, exception) {
// 		alert('exeption: ' + exception.description);
 	}
});*/

var obj = { name: 'A nice demo' };

function handler(e) {
  var tag = Event.element(e).tagName.toLowerCase();
  var data = $A(arguments);
  data.shift();
  alert(this.name + '\nClick on a ' + tag + '\nOther args: ' + data.join(', '));
}

Event.observe(window, 'load', function() {
//	Event.observe(document.body, 'click', handler.bindAsEventListener(obj, 1, 2, 3)); 
});

//]]>
</script>


</head>
<body>
 <!--a href="javascript: alert(xml)">blaa</a-->
 <a href="#" onclick="alert(annotationFileEditor.toolApplet.transformEBSchema('schemas/PurchaseOrder.xsd'))">alter button</a>
 <a href="#">test</a>
 <!--object
  codebase="./java/" 
  classid="XSLT2.class" 
  archive="saxon8.jar">
  java is nodig voor filesystem access en xslt2 support. 
 </object-->

<iframe id="guiframe" style="width: 100%; height: 100%" >
</iframe>

<div style="float: right; position: absolute">
 <applet id="javaxslt2" code="XSLT2" codebase="java/" archive="XSLT2.jar, saxon8b.jar, plugin.jar" mayscript width="100" height="100">
   <PARAM NAME="cache_option" VALUE="No">
 </applet>
</div>
 
</body>
</html>